package cn.edu.zju.gis.disasterBE.sever.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("twitter_word")
@ApiModel("推特词频表")
public class TwitterWord implements Entity<Integer>{

    @TableId(value = "wid", type = IdType.AUTO)
    @ApiModelProperty(value = "词语wid")
    private Integer wid;

    @TableField(value = "word")
    @ApiModelProperty(value = "词语")
    private String word;

    @TableField(value = "count")
    @ApiModelProperty(value = "词频")
    private Integer count;

    @Override
    public Integer id()
    {
        return wid;
    }
}
